extends Area2D

export (int) var speed = 200

var velocity = Vector2()

func _ready():
	# Called when the node is added to the scene for the first time.
	# Initialization here


	pass

func _process(delta):
	var speed_x = 1
	var speed_y = 0
	var motion = Vector2(-speed_x, speed_y) * speed
	set_position(get_global_position() + motion * delta)

#func _process(delta):
#	# Called every frame. Delta is time since last frame.
#	# Update game logic here.
#	pass


func _on_renemy_body_entered(body):
	queue_free()
	body.queue_free()
